<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>主页</title>
</head>
<body>
    <a th:href="@{/user/logout}">退出登录</a>
    <ul>
        <li shiro:hasAnyRoles="user,guest,admin">商品管理</li>
        <ul>
            <li>查看</li>
            <li shiro:hasAnyPermissions="user:add">新增</li>
            <li shiro:hasAnyPermissions="user:update">修改</li>
            <li shiro:hasAnyPermissions="user:delete">删除</li>
        </ul>
        <li shiro:hasAnyRoles="user,admin">任务管理</li>
        <li shiro:hasAnyRoles="admin">权限管理</li>
        </shiro:hasAnyRoles>
    </ul>
</body>
</html>